<?php
$this->headTitle('Quản lý game','append');
?>
<div class="grid">
    <div class="breadcrumbs">
        <a class="item-1" href="/index">Trang chủ</a> › 
        <a class="item-2" href="/admin/game"><?php $title = $this->headTitle(); if(isset($title[0])) echo $title[0]; ?></a> › 
        <span class="item-3" href="#">Xóa cache game <?php echo $this->gameCheck['gameName'];?></span>
        <div class="clear-both"></div>
    </div>
    <div class="box header">Xóa cache game</div>
    <div class="box content">
        <?php
            if(isset($this->mess)){
                if($this->flag == 'success')
                    echo '<div class="notification success">',$this->mess,'</div>';
                elseif($this->flag == 'alert')
                    echo '<div class="notification alert">',$this->mess,'</div>';
                else
                    echo '<div class="notification error">',$this->mess,'</div>';
            }
            if($this->cache != 'no exit'){
        ?>
        <form id="form" class="form-option" method="post" action="" enctype="multipart/form-data" name="form">
            <dl class="zend_form">
                <dt><label>Xóa theo chức năng</label></dt>
                <dd>
                    <div class="option-wrapper">
                        <div class="fieldset">
                            <div class="legend"><input type="checkbox" id="check_all_resource"/><label>Chọn hết</label></div>
                            <div class="fieldset-content">
                            <ul>
                            <?php 
                                foreach($this->resourceList as $resource){
                                    if($resource['moduleName'] == 'default' && ($resource['actionName'] == 'index' || $resource['actionName'] == 'channel' || $resource['actionName'] == 'server' || $resource['actionName'] == 'game'))
                                    echo "<li><input type='checkbox' name='resourceId[]' value='{$resource['menu']}'><label>{$resource['resourceName']}</label></li>";
                                }
                            ?>
                            </ul>
                                <div class="clear-both"></div>
                            </div>
                        </div>
                    </div>
                </dd>
                <div class="clear-both"></div>
                <dt></dt>
                <dd id="submit-element">
                    <input value="Xóa cache" class="button" type="submit" />
                    <input value="Reset" class="button" type="reset"/>
                </dd>
            </dl>
        </form>
        <?php
            }
        ?>
    </div>
</div>